import request from "./request";
export function userlogin (parameter){
    return request({
        url:"/user/login",
        method:'post',
        data:parameter
    })
}
export function getUserAll (parameter){
    return request({
        url:"/user/findAll",
        method:'get',
        params:parameter
    })
}
export function getUserByName (parameter){
    return request({
        url:"/user/queryByName",
        method:'post',
        data:parameter
    })
}
export function addUser (parameter){
    return request({
        url:"/user/add",
        method:'post',
        data:parameter
    })
}
export function updateUser (parameter){
    return request({
        url:"/user/update",
        method:'post',
        data:parameter
    })
}
export function delUser (parameter){
    return request({
        url:"/user/delete",
        method:'get',
        params:parameter
    })
}
export function findAllFenye (parameter){
    return request({
        url:"/user/fenye",
        method:'get',
        params:parameter
    })
}
export function queryWendu (parameter){
    return request({
        url:"/user/findwendu",
        method:'get',
        params:parameter
    })
}
export function queryGoodsByType (parameter){
    return request({
        url:"/user/findgoodsByType",
        method:'get',
        params:parameter
    })
}

